package com.million.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.million.eduservice.entity.EduTeacher;
import com.baomidou.mybatisplus.extension.service.IService;
import com.million.eduservice.entity.vo.teacher.TeacherListVo;
import com.million.eduservice.entity.vo.teacher.TeacherQuery;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 讲师 服务类
 * </p>
 *
 * @author 十麓
 * @since 2022-03-19
 */
public interface EduTeacherService extends IService<EduTeacher> {

    /**
     *
     * @param pageParam 分页参数，当前页和每页数量
     * @param teacherQuery 前端要渲染的数据，封装成一个vo对象
     */
    void pageQuery(Page<EduTeacher> pageParam, TeacherQuery teacherQuery);

    /**
     * 修改讲师
     * @param teacherListVo
     */
    void updateTeacherById (TeacherListVo teacherListVo);

    /******************************前台****************************************/
    //根据id降序，查询四个讲师
    List<EduTeacher> selectFourTeacher ();

    //前端页面分页查询讲师列表
    Map<String, Object> getTeacherFrontPage (Page<EduTeacher> teacherPage);
}
